package ooday02;

public class InterfaceDemo {
    public static void main(String[] args) {
        //Inter O =new Inter();//编译错误，接口不能被实例化
    }
}
interface Inter{
    void show();
    void test();
}
class InterImpl implements Inter{
    public void show(){
    }
    public void test(){
    }
    interface Inter1{
        void show();
    }
    interface Inter2{
        void test();
    }
    abstract class Eoo{
        abstract void say();
    }
    class Foo extends Eoo implements Inter1,Inter2{
        public void show(){
        }
        public void test(){
        }
        void say(){
        }
    }
}
interface Inter3{
    void show();
}
interface Inter4 extends Inter3{
    void test();
}
class Goo implements Inter4{
    public void test(){
    }
    public void show(){
    }
}
